package com.ysy.tz.mfg.entity;

import com.ysy.tz.core.engine.KeyValuePair;

public class SysMachineParamEntity extends BaseEntity implements KeyValuePair {
    private String deviceType;
    private String paraTypeCode;
    private String paraTypeName;
    private String posParaCode;
    private String posParaValue;
    private String remark;
    private String deviceTypeName;

    public String getKeyPair() {
        return this.posParaCode;
    }

    public String getValuePair() {
        return this.posParaValue;
    }

    public SysMachineParamEntity() {
    }

    public String getDeviceType() {
        return this.deviceType;
    }

    public String getParaTypeCode() {
        return this.paraTypeCode;
    }

    public String getParaTypeName() {
        return this.paraTypeName;
    }

    public String getPosParaCode() {
        return this.posParaCode;
    }

    public String getPosParaValue() {
        return this.posParaValue;
    }

    public String getRemark() {
        return this.remark;
    }

    public String getDeviceTypeName() {
        return this.deviceTypeName;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public void setParaTypeCode(String paraTypeCode) {
        this.paraTypeCode = paraTypeCode;
    }

    public void setParaTypeName(String paraTypeName) {
        this.paraTypeName = paraTypeName;
    }

    public void setPosParaCode(String posParaCode) {
        this.posParaCode = posParaCode;
    }

    public void setPosParaValue(String posParaValue) {
        this.posParaValue = posParaValue;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setDeviceTypeName(String deviceTypeName) {
        this.deviceTypeName = deviceTypeName;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof SysMachineParamEntity)) {
            return false;
        } else {
            SysMachineParamEntity other = (SysMachineParamEntity)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label95: {
                    Object this$deviceType = this.getDeviceType();
                    Object other$deviceType = other.getDeviceType();
                    if (this$deviceType == null) {
                        if (other$deviceType == null) {
                            break label95;
                        }
                    } else if (this$deviceType.equals(other$deviceType)) {
                        break label95;
                    }

                    return false;
                }

                Object this$paraTypeCode = this.getParaTypeCode();
                Object other$paraTypeCode = other.getParaTypeCode();
                if (this$paraTypeCode == null) {
                    if (other$paraTypeCode != null) {
                        return false;
                    }
                } else if (!this$paraTypeCode.equals(other$paraTypeCode)) {
                    return false;
                }

                Object this$paraTypeName = this.getParaTypeName();
                Object other$paraTypeName = other.getParaTypeName();
                if (this$paraTypeName == null) {
                    if (other$paraTypeName != null) {
                        return false;
                    }
                } else if (!this$paraTypeName.equals(other$paraTypeName)) {
                    return false;
                }

                label74: {
                    Object this$posParaCode = this.getPosParaCode();
                    Object other$posParaCode = other.getPosParaCode();
                    if (this$posParaCode == null) {
                        if (other$posParaCode == null) {
                            break label74;
                        }
                    } else if (this$posParaCode.equals(other$posParaCode)) {
                        break label74;
                    }

                    return false;
                }

                label67: {
                    Object this$posParaValue = this.getPosParaValue();
                    Object other$posParaValue = other.getPosParaValue();
                    if (this$posParaValue == null) {
                        if (other$posParaValue == null) {
                            break label67;
                        }
                    } else if (this$posParaValue.equals(other$posParaValue)) {
                        break label67;
                    }

                    return false;
                }

                Object this$remark = this.getRemark();
                Object other$remark = other.getRemark();
                if (this$remark == null) {
                    if (other$remark != null) {
                        return false;
                    }
                } else if (!this$remark.equals(other$remark)) {
                    return false;
                }

                Object this$deviceTypeName = this.getDeviceTypeName();
                Object other$deviceTypeName = other.getDeviceTypeName();
                if (this$deviceTypeName == null) {
                    if (other$deviceTypeName != null) {
                        return false;
                    }
                } else if (!this$deviceTypeName.equals(other$deviceTypeName)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof SysMachineParamEntity;
    }

    public int hashCode() {
        int result = 1;
        Object $deviceType = this.getDeviceType();
        result = result * 59 + ($deviceType == null ? 43 : $deviceType.hashCode());
        Object $paraTypeCode = this.getParaTypeCode();
        result = result * 59 + ($paraTypeCode == null ? 43 : $paraTypeCode.hashCode());
        Object $paraTypeName = this.getParaTypeName();
        result = result * 59 + ($paraTypeName == null ? 43 : $paraTypeName.hashCode());
        Object $posParaCode = this.getPosParaCode();
        result = result * 59 + ($posParaCode == null ? 43 : $posParaCode.hashCode());
        Object $posParaValue = this.getPosParaValue();
        result = result * 59 + ($posParaValue == null ? 43 : $posParaValue.hashCode());
        Object $remark = this.getRemark();
        result = result * 59 + ($remark == null ? 43 : $remark.hashCode());
        Object $deviceTypeName = this.getDeviceTypeName();
        result = result * 59 + ($deviceTypeName == null ? 43 : $deviceTypeName.hashCode());
        return result;
    }

    public String toString() {
        return "SysMachineParamEntity(deviceType=" + this.getDeviceType() + ", paraTypeCode=" + this.getParaTypeCode() + ", paraTypeName=" + this.getParaTypeName() + ", posParaCode=" + this.getPosParaCode() + ", posParaValue=" + this.getPosParaValue() + ", remark=" + this.getRemark() + ", deviceTypeName=" + this.getDeviceTypeName() + ")";
    }
}